<fieldset>
	<table>
	  <tr>
	  	<td width="400px"/>
		<td />
	  </tr>
	  <% for user in @all_users %>
	    <tr>
	    	<td><%= h(user.complete_name) %></td>
	    	<td>
			<%= link_to "Editar", {:controller => 'users',
								   :action => 'edit_user',
								   :id => user}
			%> |
			<%= link_to "Deletar", { # link_to options
	                             :controller => 'users', 
	                             :action => 'delete_user',
	                             :id => user},
	                           { # html options
	                             :method  => :post,
	                             :confirm => "Deseja mesmo deletar #{user.name}?"
	                           } 
			%>
			</td>
	    </tr>
	  <% end %>
	</table>
</fieldset>
<p>
  <%= link_to 'Adicionar usu&aacute;rio', :action => 'add_user'%>
</p>
<p>
  <h2>Op&ccedil;&otilde;es relacionadas:</h2>
  &bull; <%= link_to 'Gerenciar departamentos', :controller => 'departments', :action => 'list'%>
</p>

